import{nextTick as o}from"vue";const n={show:()=>{if(!window.loading){const o=document.body,n=document.createElement("div");n.className="__fa-loading",n.innerHTML='\n<div class="__fa-loading__box">\n\t<div class="__fa-loading__box-warp">\n\t\t\t<div class="__fa-loading__box-warp__item"></div>\n\t</div>\n</div>\n',o.insertBefore(n,o.childNodes[0]),window.loading=!0}},hide:()=>{window.loading&&o(()=>{setTimeout(()=>{const o=document.querySelector(".__fa-loading__box");o&&o.parentNode?.removeChild(o),window.loading=!1},500)})}};export{n as useLoading};
//# sourceMappingURL=index.mjs.map
